<%= form_tag '#',:id => :customers_form do %>
  <% customers.each do |customer| %>
  <div id='customer_<%= customer.id %>' class="grid_12 alpha customer">
    <div class="grid_1 check_customer">
      <%= check_box_tag 'customer_id[]', customer.id,false, :class => 'customer_id'  %>
    </div>
    <div class="grid_2">
      <div class="logo_border">
        <%= image_tag "users/#{customer.sex}.png", :width => '48' %>
        <% if customer.enterprise != current_enterprise %>
        <%= image_tag 'customers/good.png', :class =>'choise', :title => "泛销售专员推荐的联系人，不可删除", :alt => '泛销售专员推荐的联系人，不可删除' %>
        <% end %>
      </div>
    </div>
    <div class="grid_8">
      <div class="name">
        <%= link_to customer.full_name,customer_url(customer), :target => :_blank %>
      </div>
      <div class="title">
        <%= customer.title %>
      </div>
      <div class="contacts">
        <%= customer.emails.first.try(:way) %>,<%= customer.phones.first.try(:way) %>
      </div>
      <div class="his_tags">
      <%= render :partial => 'tags.html', :locals => { :customer => customer} %>
      </div>
    </div>
  </div>
  <% end %>
  <% end %>